﻿using S7.Net;

namespace EquipmentAlarmSystem.Service.Models;

/// <summary>
/// 西门子S7协议设备信息
/// </summary>
public class DeviceInformationSiemensS7 : DeviceInformation
{
    /// <summary>
    /// CPU类型
    /// </summary>
    public CpuType CpuType { set; get; }

    /// <summary>
    /// IP地址
    /// </summary>
    public string Ip { set; get; }

    /// <summary>
    /// 端口
    /// </summary>
    public short Port { get; set; } = 102;

    /// <summary>
    /// 机架号
    /// </summary>
    public short Rack { get; set; }

    /// <summary>
    /// 插槽号
    /// </summary>
    public short Slot { get; set; }

    /// <summary>
    /// 是否批量
    /// </summary>
    public bool IsMultiple { set; get; }

    /// <summary>
    /// 数据点位信息
    /// </summary>
    public List<PointInformation> PointInformation { get; set; }
}
